from django.db import models

from utils.aescharfield import AesCharField

# Create your models here.
class Device(models.Model):
    device_type = models.CharField(max_length=50,verbose_name="设备类型")
    device_seq = models.CharField(max_length=50,verbose_name="序列号")
    device_release = models.CharField(max_length=50,verbose_name="系统版本")
    device_hostname = models.CharField(max_length=50,verbose_name="主机名")
    cabinet_num = models.CharField(max_length=50,verbose_name="机柜名")
    publicnetwork_ip = models.CharField(max_length=50,verbose_name="公网ip")
    areanetwork_ip = models.CharField(max_length=50,verbose_name="内网ip")
    gateway = models.CharField(max_length=50,verbose_name="网关")
    systemuser = models.CharField(max_length=50,verbose_name="系统用户")
    systempassword = AesCharField(max_length=50,verbose_name="用户密码")
    sshport = models.CharField(max_length=50,verbose_name="ssh端口")
    remarks = models.TextField(verbose_name="备注")
    
    class Meta:
        verbose_name = u'资产管理'
        verbose_name_plural = u'资产管理'